<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户管理</title>
<!-- 引入easyui 的主题样式  和  easyui 提供的图标样式 -->
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/themes/bootstrap/easyui.css" />
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/themes/icon.css" />
<!-- 引入jquery 和  easyui.js   中文设置js-->
<script type="text/javascript"
	src="${pageContext.request.contextPath}\js\jquery-1.9.1.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/js/jquery.easyui.min.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/js/easyui-lang-zh_CN.js"></script>
</head>
<script type="text/javascript">
	$(function() {
		//展示用户
		$('#dg').datagrid({    
		    url:'showusers',    
		    columns:[[    
		        {field:'code',title:'C',checkbox:true,width:100,align:'center'},    
		        {field:'uname',title:'用户名',width:100,align:'center'}, 
		        {field:'upsw',title:'密码',width:100,align:'center'},
		        {field:'role',title:'角色',width:100,align:'center'},
		        {field:'ustate',title:'状态',width:100,align:'center'},    
		        {field:'name',title:'Name',width:100,align:'center'},    
		        {field:'price',title:'Price',width:100,align:'center'}   
		    ]],
		    pagination:true,
		    pagePosition:'bottom',
		    rownumbers:true,
		    pageNumber:1,
		    pageSize:5,
		    pageList:[5,10,15], 
		    toolbar: [{
				iconCls: 'icon-search',
				text:"查询",
				handler: function(){
				$('#win').window('open');//打开窗口	
				$('#btn').linkbutton('resize');//启动确定按钮
				}
			}]


		});  

		
		
		
		
		
		
		
	})
	</script>
<body>


<table id="dg"></table> 
</body>
</html>
